package com.whty.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

import com.whty.demo.repo.BaseRepositoryFactoryBean;

/**
 * @ClassName DemoApplication
 * @author Administrator
 * @date 2017-4-20 下午4:12:01
 * @Description TODO(重新指定工厂类)
 */
@EnableJpaRepositories(basePackages = {"com.whty.demo"},
repositoryFactoryBeanClass = BaseRepositoryFactoryBean.class//指定自己的工厂类
)
@SpringBootApplication
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class,args);
    }
}
